* {
    padding: 0;
    margin: 0;
}
ul,
li {
    list-style: none;
}
a {
    text-decoration: none;
    color: rgb(90, 83, 83);
}
input,
button {
    border-style: none;
    outline: none;
}
.all {
    width: 100%;
    background-color: rgb(44, 42, 44);
    header {
        position: fixed;
        margin-top: 50px;
        .leftbox {
            margin-left: 55px;
            h3 {
                font-size: 15px;
                color: cornsilk;
                margin-left: -10px;
            }
            img {
                margin-top: 10px;
                width: 40px;
                height: 40px;
                //    color: cornsilk;
            }
        }

        .title {
            width: 150px;
            // height: 300px;
            background-color: rgba(245, 225, 248,.2);
            border-radius: 20px 20px;
            // display: none;
            text-align: center;
            img {
                width: 100px;
                height: 100px;
                margin-top: 10px;
                // margin-left: 25px;
                border-radius: 30px 30px;
            }
            p {
                color: rgb(223, 202, 223);
                margin-top: 10px;
                // margin-bottom: 10px;
                font-size: 18px;
            }
            button {
                width: 60px;
                height: 30px;
                margin-top: 10px;
                margin-bottom: 20px;
                border-radius: 20px 20px;
                color: rgb(43, 42, 40);
                background-color: rgb(255, 220, 249);
            }
        }
        
    }
    .container {
        position: relative;
        width: 1200px;
        margin: auto auto;
        background-color: rgb(248, 223, 229);

        //回到头部
        .backTop {
            float: right;
            margin-top: 600px;
            // background-color: yellowgreen;
            img {
                position: fixed;
                margin-left: 50px;
                width: 60px;
                height: 80px;
                &:hover {
                    cursor: pointer;
                }
            }
        }

        // 头标
        .title-header {
            // position: absolute;
            background-color: rgba(92, 99, 94, 0.575);
            width: 100%;
            height: 30px;
            font-size: 13px;
            line-height: 30px;
            color: rgb(239, 224, 250);
            .location {
                // display: inline-block;
                float: left;
                width: 80px;
                height: 20px;
                // background-color: powderblue;
                margin-left: 90px;
                color: rgb(239, 224, 250);
            }
            ul {
                float: right;
                display: flex;
                margin-right: 65px;
                span {
                    margin-left: 10px;
                }
                li {
                    margin-left: 10px;
                    a {
                        color: rgb(239, 224, 250);
                        &:hover {
                            color: rgb(104, 100, 107);
                            border-bottom: rgb(52, 42, 53) 1px solid;
                        }
                    }
                }
            }
        }
        // 标题部分
        .nav-container {
            // position: absolute;
            width: 100%;
            height: 100px;
            line-height: 150px;

            // logo
            img {
                float: left;
                margin-top: 15px;
                margin-left: 40px;
                width: 160px;
                height: 80px;
            }
            // 导航
            ul {
                // position: relative;

                float: left;
                margin-top: 20px;
                margin-left: -64px;
                text-align: center;
                li {
                    position: relative;
                    float: left;
                    width: 80px;
                    height: 50px;
                    margin-right: 30px;
                    line-height: 53px;
                    .index {
                        color: #8b0eea;
                    }
                    a {
                        color: black;
                        &:hover {
                            color: #8b0eea;
                        }
                    }
                    ul {
                        position: absolute;
                        margin-left: 0px;
                        margin-top: 0px;
                        width: 100px;
                        height: 100px;
                        background-image: none;
                        z-index: 99;

                        li {
                            display: none;
                            &hover {
                                border: none;
                            }
                        }
                    }

                    &:hover {
                        border-bottom: 3px #8b0eea solid;
                        ul li {
                            display: block;
                            background-color: rgb(237, 224, 238);
                            // a {
                            //     color: whitesmoke;
                            // }
                            /* x偏移量 | y偏移量 | 阴影颜色 */
                            /* x偏移量 | y偏移量 | 阴影颜色 */
                            // box-shadow: 60px -16px teal;

                            /* 任意数量的阴影，以逗号分隔 */
                            box-shadow: 3px 3px rgb(236, 224, 224), 0em 0 0.4em rgb(236, 232, 235);
                        }
                    }
                }
            }
            // 搜索框
            .search-container {
                float: left;
                display: inline-block;
                // display: flex;
                width: 255px;
                height: 32px;
                padding-top: 2px;
                margin-top: 30px;
                margin-left: 30px;
                // background-color: turquoise;
                border: #43384b 2px dotted;
                border-radius: 20px 20px;

                input {
                    float: left;
                    width: 210px;
                    height: 30px;
                    margin-left: 10px;
                    background-color: rgb(248, 223, 229);

                    // background-color: rgb(249, 250, 244);
                }
                button {
                    float: left;
                    width: 30px;
                    height: 30px;
                    margin-left: -40px;
                    background-color: rgb(248, 223, 229);

                    img {
                        width: 20px;
                        height: 20px;
                        margin-top: 2px;
                        &:hover {
                            cursor: pointer;
                            background-color: rgb(248, 241, 248);
                        }
                    }
                }
            }
        }
        .cart-list {
            width: 1000px;
            margin: 40px auto;

            table {
                width: 100%;

                tr {
                    line-height: 40px;
                    text-align: center;

                    th {
                        border: rgb(201, 171, 209) 2px solid;
                        background-color: rgb(199, 154, 191);
                        color: whitesmoke;
                    }
                    td {
                        font-family: 楷体;
                        font-size: 16px;
                        background-color: rgb(239, 227, 241);
                        color: rgb(161, 106, 106);
                        border-bottom: 2px dotted rgb(136, 16, 160);
                        input[name="amount"] {
                            width: 40px;
                            text-align: center;
                        }
                        input[name="minus"],
                        input[name="plus"] {
                            width: 30px;
                            background-color: rgb(173, 80, 158);
                            border-radius: 50% 50%;
                            cursor: pointer;
                        }
                        input[name="checkall"] {
                            margin-right: 10px;
                        }
                        input[name="checksingle"] {
                            cursor: pointer;
                        }
                        img {
                            margin-top: 10px;
                            width: 100px;
                            height: 100px;
                        }
                    }
                }
            }

            .total-price {
                margin-left: 460px;
                margin-top: 20px;
                margin-bottom: -100px;
                color: rgb(89, 94, 81);
            }
        }
        .add-product {
            width: 100%;
            margin-top: 10px;
            form {
                margin-left: 470px;
                margin-top: 150px;
                input {
                    width: 300px;
                    height: 30px;
                    border: rgb(161, 33, 155) 2px dotted;
                    margin-top: 10px;
                }
                input[type="submit"] {
                    width: 75px;
                    height: 40px;
                    margin-left: 117px;
                    // margin-top: -200px;
                    background-color: rgb(201, 9, 201);
                    color: cornsilk;
                    border-radius: 13% 13%;
                    cursor: pointer;
                    // display: block;
                }
            }
        }
    }
}
